//
//  CZOneViewController.m
//  UIPopoverController练习
//
//  Created by chao on 15/2/27.
//  Copyright (c) 2015年 chao. All rights reserved.
//

#import "CZOneViewController.h"
#import "CZTwoViewController.h"
@interface CZOneViewController ()

@end

@implementation CZOneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"CZOneViewController";
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCompose target:nil action:nil];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:nil action:nil];
    self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
}

- (IBAction)jump {
//    CZTwoViewController *twoVc = [[CZTwoViewController alloc]
//                                  initWithNibName:@"CZTwoViewController" bundle:nil];
    CZTwoViewController *twoVc = [[CZTwoViewController alloc] init];
    twoVc.title = @"CZTwoViewController";
    [self.navigationController pushViewController:twoVc animated:YES];
}
@end
